package test.enba.log.controller;

import com.enba.boot.log.LogHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/log")
public class LogController {

  @Autowired private LogHelper logHelper;

  // 记录日志
  @GetMapping("/add")
  public String add() {
    logHelper.log("记录日志");
    return "ok";
  }
}
